<?php
namespace app\admin\validate;

use think\Validate;
/**
 * 角色验证器
 * @package app\admin\validate
 * @author xiaohu <1731050423@qq.com>
 */
class Article extends Validate
{
    //定义验证规则
    protected $rule = [
        'title|标题'   => 'require|unique:article',
        'cat_id|所属分类'   => 'require|number|gt:0',
    ];
}
